// routes/distribution.js
const express = require("express");
const router = express.Router();
const controller = require("../controllers/distributionController");

// ✅ 获取分销主体列表（适配前端 getDistributors）
router.get("/list", controller.getList);

// ✅ 标记某个分销主体打款完成（适配前端 markPayout）
router.post("/payout/:id", controller.markPayout);

module.exports = router;
